from GetDatas import get_datas
from Need4Xy import NeedForFeature
from utils.cacular_date import cacular_date, getEveryDay
import datetime
from saveModel import save_clf


if __name__ == '__main__':
    # 获取当昨天的日期
    date_yestoday = cacular_date(datetime.date.today(), -1)
    date_start = cacular_date(date_yestoday, -1100)
    temp_yesday = cacular_date(datetime.date.today(), -300)
    date_list = getEveryDay(date_start, temp_yesday)
    # 获取数据
    # get_datas(date_start, date_yestoday)
    # # 将数据划分成特征和结果集
    # featureObj = NeedForFeature(currency="ETHUSDT", date_list=date_list)
    # featureObj.getXy(date_list)
    # # 训练模型
    save_clf()
